import {createStore} from 'vuex'

export default createStore({
    state() {
        return {
            count: 1,
        }
    },
    getters: {},
    mutations: {
        changeCountMutation(state,count){
            state.count=count
        }
    },
    actions: {
        changeCountAction(context,count){
            context.commit("changeCountMutation",count+=1)
        }
    },
    modules: {}
})
